import request from '@/utils/request'

export function loginByUsername (userName, password, captcha) {
  const data = {
    userName,
    password,
    captcha
  }
  return request({
    url: '/login',
    method: 'post',
    data
  })
}

export function logout () {
  return request({
    url: '/logout',
    method: 'post'
  })
}
